package com.dreamwhale.machinery.user.service;

import com.dreamwhale.machinery.user.entity.YxUser;
import com.dreamwhale.machinery.user.entity.YxUserAddress;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.data.relational.core.sql.In;

/**
 * <p>
 * 用户地址表 服务类
 * </p>
 *
 * @author Author
 * @since 2020-05-27
 */
public interface YxUserAddressService extends IService<YxUserAddress> {


    /**
     * 添加地址
     *
     * @return
     */
    int insertYxUserAddress(YxUserAddress yxUserAddress);

    /**
     * 查重地址
     *
     * @param userId
     * @return
     */
    int selectYxUserAddress(Integer userId);

    /**
     * 修改地址
     *
     * @param yxUserAddress
     * @return
     */
    int updateYxUserAddress(YxUserAddress yxUserAddress);
}
